Skip to content

Bound public API quota retries and make genre tagging best-effort - #6

Merged
jasonpatrickellykrause merged 1 commit into
mainfrom
fix/bounded-public-api-retries
Nov 16, 2026
Merged

jasonpatrickellykrause merged 1 commit into
mainfrom
fix/bounded-public-api-retries

Conversation

@jasonpatrickellykrause

Copy link
Copy Markdown
Collaborator

Fix

PublicApi.Call retried quota errors (codes 4 and 700) every 5 seconds with no limit, the same pattern 1.2.3 removed from GWApi. The plugin doesn't call PublicApi directly, but ApplyMetadataToTagLibFile calls PublicApi.GetAlbum for every track to read its genres, so a quota error stalled that track's download until Deezer stopped refusing.

  • Quota errors retry up to three times, 5 seconds apart, then throw APIException with Deezer's message.
  • Tagging treats the genre lookup as best-effort: if the public API fails or the album has no genre list, the track is tagged without genres. Cancellation still propagates. This also removes the ! dereference on genres.data that the old code flagged as a possible break.

Bumps the version to 1.2.5 with a changelog entry.

Skipped from the review: making SetARL throw on an anonymous session (USER_ID 0). The plugin already checks USER_ID before downloads, in the health check, and in ARLUtilities.IsValid, and its CheckAndSetARL and RefreshToken paths expect SetARL not to throw.

🤖 Generated with Claude Code

PublicApi retried quota errors (codes 4 and 700) every 5 seconds with no
limit. Tagging calls PublicApi.GetAlbum for every track to read genres,
so a quota error stalled the track until Deezer stopped refusing. Quota
errors now retry three times, then throw APIException, and tagging skips
genres when the public API fails or returns none. Bump to 1.2.5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jasonpatrickellykrause
jasonpatrickellykrause merged commit a00213f into main Nov 16, 2026
5 checks passed
@jasonpatrickellykrause
jasonpatrickellykrause deleted the fix/bounded-public-api-retries branch November 16, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant